Update multiple rows with multiple 'where' clauses using CASE